const routes = [
  {
    path: "/",
    redirect: "/user",
  },
  {
    path: "/",
    component: "@/layouts/BasicLayout",
    routes: [
      {
        name: "用户管理",
        path: "/user",
        component: "./User",
      },
      {
        name: "家庭管理",
        path: "/family",
        component: "./Family",
      },      {
        name: "分类管理",
        path: "/type",
        component: "./Type",
      },
    ],
  },
  {
    name: "登录",
    path: "/login",
    component: "./Login",
  },
];

export default routes;
